<?php


$widgetpath = "./widget/".$widgetname."/";

file_exists(S_ROOT.$widgetpath."control/run.php") or exit('widget_file not fund!');

include $widgetpath."control/run.php";


if (file_exists($widgetpath."tpl/".$_K['template']."/view.htm")){
	require keke_tpl_class::template ($widgetpath."tpl/".$_K['template']."/view" );
}elseif (file_exists($widgetpath."tpl/default/view.htm")){
	require keke_tpl_class::template ($widgetpath."tpl/default/view" );
}
 